#include <iostream>
#include <fstream>
#include <string>
using namespace std;
 
int main()
{
    int cnt=0;
    string str;
    ifstream fin("C:\\Users\CWW\Documents\Visual Studio 2010\Projects\Testb.txt", ios::in);
    if(!fin){
        printf("The file is not exist!");
        return -1;
    }
    while(getline(fin, str))
    {
        cnt++;
        cout<<str<<endl;
    }
	system("pause");
    return 0;
}